package org.onvivals.module.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 角色权限
 */
@Schema(description="角色权限")
@Data
@TableName(value = "sys_role_menu")
public class SysRoleMenu implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 菜单id
     */
    @Schema(description="菜单id")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long menuId;

    /**
     * 角色id
     */
    @Schema(description="角色id")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long roleId;
}
